/* Main Styles for Recommendation System Web Application */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card styles */
.card {
    border-radius: 8px;
    margin-bottom: 20px;
    border: none;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 500;
}

.card-body {
    padding: 1.5rem;
}

.shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Form elements */
.form-control {
    border-radius: 4px;
    padding: 8px 12px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn {
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
}

.btn-primary {
    background-color: #0062cc;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-outline-primary:hover {
    background-color: #0062cc;
}

/* Rating stars */
.rating-stars {
    display: flex;
    align-items: center;
}

.rating-value {
    margin-right: 10px;
    font-weight: bold;
}

.stars {
    display: inline-block;
}

.star {
    font-size: 1.2rem;
    line-height: 1;
}

.star.full {
    color: #ffc107;
}

.star.half {
    color: #ffc107;
    position: relative;
}

.star.half:after {
    content: '☆';
    position: absolute;
    right: 0;
    color: #ffc107;
    width: 50%;
    overflow: hidden;
}

.star.empty {
    color: #e0e0e0;
}

/* Header and Footer */
header h1 {
    color: #0062cc;
    font-weight: 700;
}

footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

/* Table styles */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 123, 255, 0.05);
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.075);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .card {
        margin-bottom: 15px;
    }

    .card-body {
        padding: 1rem;
    }

    .container {
        padding: 0 10px;
    }

    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Animation for loading spinners */
@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    animation: spinner 0.75s linear infinite;
}